Explanation of how I migrated to using GCC instead of OpenWatcom for the stage2 bootloader, how I finished the bootloader, and started working on the kernel. The purpose of this video is to offer better explanations for what I did in the livestreams. Links: - Discord channel: https://discord.gg/RgHc5XrCEw - Source code: https://github.com/chibicitiberiu/nanobyte_os/releases/tag/Part7 Referenced videos: - Making part 7 livestream (part 1): https://www.youtube.com/watch?v=db_5skZaneg - Making part 7 livestream (part 2): https://www.youtube.com/watch?v=0gDzlt2eZJ4 - Setting up your OS environment (and building a cross compiler): https://www.youtube.com/watch?v=TgIdFVOV_0U - Protected mode: https://www.youtube.com/watch?v=EBdzWFyKZ0U Documentation: - Why do I need a cross compiler & compiler flags: https://wiki.osdev.org/Why_do_I_need_a_Cross_Compiler%3F#Options_that_you_should_pass_to_your_Compiler - Libgcc: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html - Building a cross compiler: https://wiki.osdev.org/GCC_Cross-Compiler Chapters: 0:00 Introduction 0:35 Why switch to GCC 4:00 config.mk 4:50 Automating toolchain build 10:22 Stage2 makefile 14:15 Stage2 linker script 15:45 Stage2 entry point (switching to protected mode) 16:59 Calling BIOS interrupts from protected mode 21:10 Text output in protected mode 24:05 Stage2 loading kernel 26:00 The kernel 27:02 Conclusion